﻿
<!DOCTYPE html>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>注册</title>
<!-- jQuery -->
<script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<!-- jQuery Easing -->
<script src="${pageContext.request.contextPath}/js/jquery.easing.1.3.js"></script>

</head>
<body>
	<script>
			
			
		 $(document).ready(function () {
//设置异步提交成功的回调函数
    var options = {
        success: function (data) {
            window.location.href="${pageContext.request.contextPath}/system/news/getAllNewsByPid";
        },
    };
 
        // 将表单异步化，
        $("#form1").ajaxForm(options);
 
    });	
			
		</script>




	<form action="/NewsManager/system/news/updateNews"
		enctype="multipart/form-data" method="post" id="form1">
		id:<input type="text" name="id" id="id" value="${news.id}"><br />
		标题:<input type="text" name="title" id="title" value="${news.title}"><br />

		作者:<input type="text" name="author" id="author" value="${news.author}"><br />

		内容:<input name="content" id="content" value="${news.content}"></input><br />

		原图:<img src="${pageContext.request.contextPath}/${news.urlpicture}"
			style="width:200px;height: 200px;"> 新图片:<input type="file"
			name="file" id="file"><br /> <input type="submit" value="上传" />
	</form>

	<div id="title1"></div>
</body>
</html>

